package com.dream.inspect.modules.sys.common;

import org.apache.shiro.authc.UsernamePasswordToken;

import com.dream.inspect.modules.app.constants.AttrConstants;

public class MyUsernamePasswordToken extends UsernamePasswordToken {

    private static final long serialVersionUID = -8509232846710987496L;

    private String loginType;

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    /**
     * use password login
     *
     * @param username
     * @param password
     */
    public MyUsernamePasswordToken(String username, String password) {
        super(username,password);

        this.loginType=AttrConstants.PKI;
    }

    /**
     * no use password login
     *
     * @param username
     */
    public MyUsernamePasswordToken(String username) {
        super(username,"");

        this.loginType=AttrConstants.PSTORE;
    }


}
